package com.eastcom.providor.service.extview;

import java.util.ArrayList;
import java.util.List;

import com.eastcom.bm.atom.Atom_MetalKpiExpand;

public class MetalKpiExpandUtil {
	
	public static List<Atom_MetalKpiExpand> createDatasetDefine(List<Atom_MetalKpiExpand> metalKpiExpands){
		if(metalKpiExpands==null||metalKpiExpands.isEmpty())
			return null;
		
		List<Atom_MetalKpiExpand> results=new ArrayList<Atom_MetalKpiExpand>();
		for(Atom_MetalKpiExpand metalKpiExpand:metalKpiExpands){
			Atom_MetalKpiExpand result=new Atom_MetalKpiExpand();
			result.setId(metalKpiExpand.getId());
			result.setArithmetic(metalKpiExpand.getArithmetic());
			result.setCollectDesc(metalKpiExpand.getCollectDesc());
			result.setDelay(metalKpiExpand.getDelay());
			result.setDimension(metalKpiExpand.getDimension());
			result.setGranularity(metalKpiExpand.getGranularity());
			result.setSourceDesc(metalKpiExpand.getSourceDesc());
			result.setUpdateName(metalKpiExpand.getUpdateName());
			result.setVersion(metalKpiExpand.getVersion());
			result.setUpdateTime(metalKpiExpand.getUpdateTime());
			
			results.add(result);
		}
		
		return results;
	}
}
